<template>
    <div class="goods">
            <goods-list-item
                v-for="(item,index) in goods" :key="item.id+index" :product="item"
            ></goods-list-item>
    </div>
</template>

<script>
    import GoodsListItem from "./GoodsListItem";
    export default {
        name: "GoodsList",
        props:{
            goods:{
                type:Array,
                default(){
                        return []
                }
            }
        },

        mounted() {

        },

        components: {
            GoodsListItem
        }
    }
</script>

<style scoped>
    .goods {
        display: flex;
        width: 100%;
        height: 100vh;
        border-radius: 4px;
        margin-top: 20px;
        justify-content: space-around;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }
</style>